package com.circle.rest.core.exception;

/**
 * @program: RestfulApi
 * @description: 全部异常枚举
 * @author: 赵航
 * @create: 2019-03-07 09:42
 **/
public enum ExceptionEnum {
    SERVICE_ERROR(505, "系统业务异常");

    private final int code;
    private final String msg;

    ExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int code() {
        return code;
    }

    public String msg() {
        return msg;
    }
}
